<g:render template="/common/flashMessage" />
<g:render template="/common/beanError" model="[bean:person]" />
<table>
  <tbody>
    <tr class='prop'>
      <td valign='top' class='name'><label for='username'>Login Name:</label></td>
      <td valign='top' class='value'>${user?.username?.encodeAsHTML()}</td>
    </tr>
    <tr class='prop'>
      <td valign='top' class='name'><label for='title'>Title:</label></td>
      <td valign='top' class='value'>${user?.title?.encodeAsHTML()}</td>
    </tr>
    <tr class='prop'>
      <td valign='top' class='name'><label for='firstName'>First Name:</label></td>
      <td valign='top' class='value'>${user?.firstName?.encodeAsHTML()}</td>
    </tr>
    <tr class='prop'>
      <td valign='top' class='name'><label for='lastName'>Last Name:</label></td>
      <td valign='top' class='value'>${user?.lastName?.encodeAsHTML()}</td>
    </tr>
    <tr class='prop'>
      <td valign='top' class='name'><label for='email'>Email:</label></td>
      <td valign='top' class='value'>${user?.email?.encodeAsHTML()}</td>
    </tr>
    <tr class='prop'>
      <td valign='top' class='name'><label for='phone'>Phone:</label></td>
      <td valign='top' class='value'>${user?.phone?.encodeAsHTML()}</td>
    </tr>
    <tr class="prop">
      <td valign="top" class="name"><label for="enabled">Enabled:</label></td>
      <td valign="top" class="value">${user.enabled}</td>
    </tr>
    <tr class="prop">
      <td valign="top" class="name"><label for="roles">System Roles:</label></td>
      <td valign="top" class="value">
        <ul>
          <g:each in="${roleMap}">
            <li>
              ${it.key.description}
            </li>
          </g:each>
        </ul>
      </td>
    </tr>
    <tr class="prop">
      <td valign="top" class="name"><label for="notes">User Notes:</label></td>
      <td valign="top" class="value">${fieldValue(bean:user, field:'notes')}</td>
    </tr>
  </tbody>
</table>
